package com.oa.juint;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

import com.oa.ServiceImp.UserServiceImp;
import com.oa.entity.User;


@RunWith(SpringJUnit4ClassRunner.class)  
@ContextConfiguration(locations = {"classpath:spring-system-config.xml"})  
@Transactional  
@TransactionConfiguration(transactionManager="H4TxManager",defaultRollback=false)
public class UserTest {
	
	
	@Autowired
	private UserServiceImp userService;
	
	@Test  
	public void find(){
		List<User> list = userService.find("from User");
		
		
	}
	
	

}
